<div id="ContentGroup">
    <div class="count-header">
        <a>用户组授权</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form id="YHZXX_Auth" data-role="form" data-event="finish" data-type="post" data-url="<{'YHZXX_Auth_Action'|U}>">
                <input type="hidden" id="YHZXX_BH_ORA" name="YHZXX_BH_ORA" value="<{$Model->YHZXX_BH|security_encript}>"/>

                <div class="count-content-title">用户组授权</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label">用户组名称</label>
                    <span class="form-list-item-label" style="color:darkgreen;text-align: left"><{$Model->YHZXX_MC}></span>

                    <p class="form-list-item-tip"></p>
                </div>
                <{$mkfzlist = MKFZ::query()}>
                <{foreach $mkfzlist.DataList as $mkfz}>
                    <{$mkxxlist = MKXX::query(['MKFZ_BH' => $mkfz->MKFZ_BH])}>
                    <div class="form-list-item">
                        <label class="form-list-item-label"><{$mkfz->MKFZ_MC }></label>
                    <span style="display: inline-block;">
                         <{foreach  $mkxxlist.DataList as $mkxx }>
                             <{$yhzmklist =YHZMK::query(['MKXX_BH' => $mkxx->MKXX_BH]) }>
                             <{if $yhzmklist.DataList|count >0}>
                                 <div style="width: 140px; display: inline-block;">
                                     <input type="checkbox" id="<{$mkxx->MKXX_BH }>" value="<{$mkxx->MKXX_BH }>" name="MKXX[]" checked="checked"/>
                                     <label style="color: green;" for="<{$mkxx->MKXX_BH }>"><{$mkxx->MKXX_MC }></label>
                                 </div>

                                                                  <{else}>

                                 <div style="width: 140px; display: inline-block;">
                                     <input type="checkbox" id="<{$mkxx->MKXX_BH }>" value="<{$mkxx->MKXX_BH }>" name="MKXX[]"/>
                                     <label for="<{$mkxx->MKXX_BH }>"><{$mkxx->MKXX_MC }></label>
                                 </div>
                             <{/if}>
                         <{/foreach}>
                    </span>
                    </div>
                <{/foreach}>
            </form>
            <div class="form-operation">
                <span class="button" id="YHZXX_Auth-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#YHZXX_Insert").vtip();//开启鼠标提示.
        $(function () {
            $("#YHZXX_Auth-Submit").click(function () {
                $("#YHZXX_Auth").trigger("finish");
            });
        });
    });
</script>
